﻿using System.Collections.Generic;
using ADC.Comet.Core;

namespace Sharp.Framework.Comet
{
    /// <summary>
    /// 异步消息结果
    /// </summary>
    public class AsyncMessageResult
    {

        /// <summary>
        /// 最后接收时间
        /// </summary>
        public readonly long LastTime;
        /// <summary>
        /// 消息列表
        /// </summary>
        public readonly List<Message> Messages;
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="lastTime">最后接收时间</param>
        /// <param name="messages">消息列表</param>
        public AsyncMessageResult(long lastTime, List<Message> messages)
        {
            LastTime = lastTime;
            Messages = messages;
        }
    }
}